﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DataSheet.aspx.cs" Inherits="client_DataSheet" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Data Sheet</title>
    <link href="../styles/client.css" rel="stylesheet" type="text/css" />
    <link href="../styles/lytebox.css" rel="stylesheet" type="text/css" media="screen" />

    <script src="../javascripts/lytebox.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager EnablePartialRendering="true" ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div id="content_area">
        <h2>
            Data Sheet
        </h2>
        <div id="status_wrapper">
            <div class="status">
                <h3>
                    <asp:Label ID="MachineNameLabel" runat="server">
                    </asp:Label>
                </h3>
                <div class="form_box1">
                <table id="selectedtable" runat="server">
                    <tr>
                        <td class="label1">
                            Select Components:
                        </td>
                        <td>
                            <asp:DropDownList ID="SelectComponent_DropDownList" AutoPostBack="true" runat="server"
                                OnSelectedIndexChanged="Component_changed" DataTextField="ComponentName" 
                                DataValueField="Componentid" CssClass="DropDownList1">
                                <asp:ListItem>Any</asp:ListItem>
                                <asp:ListItem>Choose Components</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:UpdatePanel ID="upnl" runat="server">
                                <ContentTemplate>
                                    <asp:CheckBoxList ID="ComponentsCheckBoxList" runat="server" 
                                        CssClass="CheckBoxList">
                                    </asp:CheckBoxList>
                                </ContentTemplate>
                                <Triggers>
                                    <asp:AsyncPostBackTrigger ControlID="SelectComponent_DropDownList" />
                                </Triggers>
                            </asp:UpdatePanel>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td>
                            <asp:Button ID="Get_Button" runat="server" Text="Get DataSheet" 
                                OnClick="GetDataSheet" CssClass="buttons" />
                        </td>
                    </tr>
                    <tr>
                    <td>
                    </td>
                    <td>
                            <asp:Button ID="Edit" runat="server" OnClick="Edit_Click" Text="Button" 
                            Visible="False" CssClass="buttons" />
                    </td>
                    </tr>
                </table>
                </div>

                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
                <asp:GridView ID="ComponentDataGridView1" runat="server" ShowHeader="False">
                    <RowStyle HorizontalAlign="Center" />
                    <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                </asp:GridView>
                <br />
                <asp:GridView ID="ComponentDataGridView" runat="server" AutoGenerateColumns="False">
                    <Columns>
                        <asp:TemplateField HeaderText="Attribute">
                            <ItemTemplate>
                                <asp:TextBox ID="TextBox1" ReadOnly="true" runat="server"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Value">
                            <ItemTemplate>
                                <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <br />
                <asp:TextBox ID="TextBox3" runat="server" Enabled="False" CssClass="fields"></asp:TextBox>
                <br />
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Button" 
                    CssClass="buttons1" />
            </div>
        </div>
    </div>
    </form>
</body>
</html>
